//
//  HEUpdateAlert.h
//  HealthFamily
//
//  Created by 吴欧 on 2021/2/20.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HEAppStoreInfoModel.h"
#import <UIKit/UIKit.h>


//在App Store上的APPID
#define APPID @"1558390528"

NS_ASSUME_NONNULL_BEGIN

typedef void(^CheckVersionBlock)(HEAppStoreInfoModel *appInfo);


@interface HEUpdateAlert : NSObject


/**
 *  检测新版本(使用系统默认提示框)
 *
 *  appID:应用在Store里面的ID (应用的AppStore地址里面可获取)
 *  containCtrl: 提示框显示在哪个控制器上
 */
+(void)checkNewEditionWithAppID:(NSString *)appID ctrl:(UIViewController *)containCtrl;

/**
 *  检测新版本(使用自定义提示框)
 *
 *  @param appID (应用的AppStore地址里面可获取)
 *  @param checkVersionBlock AppStore上版本信息回调block
 */
+(void)checkNewEditionWithAppID:(NSString *)appID CustomAlert:(CheckVersionBlock)checkVersionBlock;

@end

NS_ASSUME_NONNULL_END
